export default {

  /**
   * 设置显示登录/注册弹窗显示状态
   * @param commit
   * @param modelType 弹窗显示状态
   * @param tabType 显示选项卡 true  登录  false 注册
   */
  showLoginAndRegisterModelType({commit}, {modelType, tabType}) {
    if (modelType === null || modelType === '' || tabType === null || tabType === '') {
      throw new Error('请设置对应参数,查阅actions showLoginAndRegisterModelType方法');
    }
    commit('setShowLoginAndRegisterModel', modelType);
    commit('setShowLoginOrRegisterType', tabType);
  }
}